package com.example.viewmodelstudio.lifeclcycle_service;

import android.util.Log;

import androidx.lifecycle.LifecycleService;

public class MyLicationService extends LifecycleService {

    public MyLicationService() {
        Log.d("zdl","============MyLicationService===========");
        MyLicationObservice myLicationObservice = new MyLicationObservice(this);
        getLifecycle().addObserver(myLicationObservice);
    }

}
